package com.ezbuy.autogen.ftlgen;

public class ${name} {

<#list classes as item>
    <#if item.type=="class">
    public static class ${item.name} {
        <#list item.fields?keys as key>
        public ${item.fields[key]} ${key};
        </#list>
    }

    <#elseif item.type=="enum">
    public enum ${item.name} {
        <#list item.values as value>
        ${value},
        </#list>
    }

    <#elseif item.type=="service">
    public interface ${item.name} {

        <#list item.methods as method>
        ${method.returnType} ${method.name}(${method.argsType} ${method.argsName});

        </#list>
    }

    </#if>
</#list>

}